<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="studentList" checkbox="true" fitColumns="true" title="学生表" actionUrl="studentController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人名称"  field="createName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人登录名称"  field="createBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建日期"  field="createDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人名称"  field="updateName"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新人登录名称"  field="updateBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="更新日期"  field="updateDate" formatter="yyyy-MM-dd" hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="学号"  field="stuNo"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="姓名"  field="stuName"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="性别"  field="sex"  dictionary="sex"   queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="生日"  field="birthday"  formatter="yyyy-MM-dd"   queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="专业"  field="major.majorName"   queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="系别"  field="series.seriesName"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="班级"  field="stuClass.className"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="组别"  field="stuGroup.groupName"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="系内外"  field="seriesType"   dictionary="seriesType"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="一卡通"  field="cardNo"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="手机号"  field="cellphone"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt title="删除" url="studentController.do?doDel&id={id}" />
   <t:dgToolBar title="录入" icon="icon-add" url="studentController.do?goAdd" funname="add" height="360" width="877"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="studentController.do?goUpdate" funname="update" height="360" width="877"></t:dgToolBar>
    <t:dgToolBar title="查看" icon="icon-search" url="studentController.do?goUpdate" funname="detail" height="360" width="877"></t:dgToolBar>
   <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/mengtian_tech/device_mgr/student/studentList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#studentListtb").find("input[name='createDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#studentListtb").find("input[name='updateDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'studentController.do?upload', "studentList");
}

//导出
function ExportXls() {
	JeecgExcelExport("studentController.do?exportXls","studentList");
}
 
 </script>